<template>
  <div class="mask">
    <div class="pop-table">
      <div class="pop-table-style">
        <div class="table-header">
          <div class="headerBg">排名查询</div>
          <div class="close" @click="isClose()"></div>
        </div>
        <div class="table-content">
          <div class="left-table">
            <dv-scroll-board
              style="
                width: 90%;
                height: 80%;
                margin-left: 15px;
                margin-top: 15px;
              "
              :config="config"
            />
          </div>
          <div class="right-table">
            <dv-scroll-board
              style="
                width: 90%;
                height: 80%;
                margin-left: 15px;
                margin-top: 15px;
              "
              :config="config2"
            />
          </div>
        </div>
      </div>
      <div></div>
    </div>
    <!--  -->
  </div>
</template>
  
  <script>
import { cigaretteRankingData, cityRankingData } from "./fakeData";
export default {
  props: {},
  data() {
    return {
      config: {
        header: ["排名", "承办单位", "数量（万支)"],
        headerBGC: "#000858",
        oddRowBGC: "",
        evenRowBGC: "",
        columnWidth: [10, 300, 10],
        rowNum: 5,
        align: ["center"],
        data: cityRankingData,
      },
      config2: {
        header: ["排名", "承办单位", "数量（条)"],
        headerBGC: "#000858",
        oddRowBGC: "",
        evenRowBGC: "",
        columnWidth: [10, 300, 10],
        rowNum: 5,
        align: ["center"],
        data: cigaretteRankingData,
      },
    };
  },
  components: {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    isClose() {
      this.$emit("isHide", false);
    },
  },
};
</script>
  
  <style lang="scss" scoped>
.mask {
  width: 100%;
  height: 100%;
  position: relative;
  .pop-table {
    width: 900px;
    height: 474px;
    background: url(../../assets/crackDown/dialog.png) no-repeat;
    background-size: 100% 100%;
    padding-left: 38px;
    position: absolute;
    top: 38%;
    left: 48%;
    transform: translate(-50%, -50%);
    .pop-table-style {
      width: 100%;
      .table-header {
        width: 100%;
        height: 50px;
        position: relative;
        .headerBg {
          text-align: center;
          // line-height: 72px;
          padding-top: 28px;
          position: absolute;
          transform: translate(-50%, -0%);
          left: 50%;
          width: 295px;
          height: 50px;
          background: url(../../assets/crackDown/dialogHeader.png) no-repeat;
        }
      }
      .table-content {
        display: flex;
        margin-top: 10px;
        height: 400px;
        > div {
          width: 50%;
        }
        .left-table {
          background: url(../../assets/crackDown/bg1.png) no-repeat;
        }
        .right-table {
          background: url(../../assets/crackDown/bg1.png) no-repeat;
        }
      }
    }
  }
  .close {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
  }
}
::v-deep .header {
  width: 96%;
}
::v-deep .header-item:nth-child(1),
::v-deep .ceil:nth-child(1) {
  width: 80px !important;
  text-align: center;
}
::v-deep .header-item:nth-child(2),
::v-deep .ceil:nth-child(2) {
  width: 150px !important;
  text-align: center;
}

::v-deep .header-item:nth-child(3),
::v-deep .ceil:nth-child(3) {
  width: 200px !important;
  text-align: center;
}
::v-deep .header-item:nth-child(4),
::v-deep .ceil:nth-child(4) {
  width: 130px !important;
  text-align: center;
}

::v-deep .header-item:nth-child(5),
::v-deep .ceil:nth-child(5) {
  width: 150px !important;
  text-align: center;
}
::v-deep .header-item:nth-child(6),
::v-deep .ceil:nth-child(6) {
  width: 150px !important;
  text-align: center;
}
</style>
  